package com.shop.front.dao.integral;

import com.shop.jpa.BaseDao;
import com.shop.domain.integral.WatchVideosIntegral;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public interface WatchVideosIntegralDao extends BaseDao<WatchVideosIntegral, Long> {

    @Query(nativeQuery = true, value = "select count(*) from t_watch_videos_integral where create_time >= ?1 and create_time <= ?2 and uid= ?3")
    public int findWatchVideosByCreateTime(Date startTime,Date endTime,Long uid);

}
